﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2">
  <class name="Tracker.Data.Entities.Location, Tracker.Data" table="locations" lazy="false">
    <id name="Id" column="Id" type="int">
      <generator class="native"></generator>
    </id>
    <property name="Timestamp" column="DateTime"></property>
    <property name="Latitude" column="Latitude"></property>
    <property name="Longitude" column="Longitude"></property>
    <many-to-one name="Truck" column="TruckId" class="Tracker.Data.Entities.Truck" not-null="true" />
  </class>
</hibernate-mapping>
